import Vue from 'vue'
import Router from 'vue-router'
import test from '@/components/test'
import photo from '@/components/photo/photo'
import photos from '@/components/photo/photos'
import index from '@/components/index/index'
import articleInfo from '@/components/article/articleInfo'
import articles from '@/components/article/articles'
import about from '@/components/about/about'
import comment from '@/components/comment/comment'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/test',
      name: 'test',
      component: test
    },
    {
      path: '/photo',
      name: 'photo',
      component: photo
    },
    {
      path: '/photos',
      name: 'photos',
      component: photos
    },
    {
      path: '/articleInfo',
      name: 'articleInfo',
      component: articleInfo
    },
    {
      path: '/articles',
      name: 'articles',
      component: articles
    },
    {
      path: '/about',
      name: 'about',
      component: about
    },
    {
      path: '/comment',
      name: 'comment',
      component: comment
    }
  ]
})
